package com.test.zk;


import lombok.extern.slf4j.Slf4j;
import org.apache.zookeeper.AsyncCallback;
import org.apache.zookeeper.data.Stat;

import java.util.List;

/**
 * Created by xingfeng on 19-3-7.
 */
@Slf4j
public class ChildrenCallback implements AsyncCallback.ChildrenCallback {

    public void processResult(int rc, String path, Object ctx, List<String> list) {
        log.warn("异步获取子节点："+path+","+(String)ctx+",子节点个数："+list.size());
    }
}
